import request from '@/utils/request'

// 查询要货计划列表
export function listPsYhPlan(query) {
  return request({
    url: '/business/psYhPlan/list',
    method: 'get',
    params: query
  })
}

// 查询要货计划详细
export function getPsYhPlan(id) {
  return request({
    url: '/business/psYhPlan/' + id,
    method: 'get'
  })
}

// 新增要货计划
export function addPsYhPlan(data) {
  return request({
    url: '/business/psYhPlan',
    method: 'post',
    data: data
  })
}

// 修改要货计划
export function updatePsYhPlan(data) {
  return request({
    url: '/business/psYhPlan',
    method: 'put',
    data: data
  })
}

// 删除要货计划
export function delPsYhPlan(id) {
  return request({
    url: '/business/psYhPlan/' + id,
    method: 'delete'
  })
}
